package com.heisen.security.utils;

import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @author sen
 * @description
 * @date 2023/12/19 10:00
 */

public class UserUtils {

    public  static Object getUser(){
        return    SecurityContextHolder.getContext().getAuthentication().getDetails();
    }


    /**
     * h获取cliendid
     * @return
     */
    public  static Object getClientID(){
        return    SecurityContextHolder.getContext().getAuthentication().getName();
    }
}
